/*theme*/
@import 'theme.scss';

/*animate*/
@import './animate.scss';


/*公共样式*/
* {
    padding: 0;
    margin: 0;
    font-size: 0px;
    scroll-behavior: smooth;
}

.ul,
ol,
li {
    list-style: none;
}

.m-t-10 {
    margin-top: 10px;
}

.m-r-10 {
    margin-right: 10px;
}

.m-b-10 {
    margin-bottom: 10px;
}

.m-l-10 {
    margin-left: 10px;
}

.m-t-20 {
    margin-top: 20px;
}

.m-r-20 {
    margin-right: 20px;
}

.m-b-20 {
    margin-bottom: 20px;
}

.m-l-20 {
    margin-left: 20px;
}

.p-t-10 {
    padding-top: 10px;
}

.p-r-10 {
    padding-right: 10px;
}

.p-b-10 {
    padding-bottom: 10px;
}

.p-l-10 {
    padding-left: 10px;
}

.p-t-20 {
    padding-top: 20px;
}

.p-r-20 {
    padding-right: 20px;
}

.p-b-20 {
    padding-bottom: 20px;
}

.p-l-20 {
    padding-left: 20px;
}

@mixin jc-flex {
    display: flex;
    justify-content: center;
    align-items: center;
}

.pui-triangle {
    width: 22px;
    height: 12px;
    background-color: #ddd;
    position: absolute;

    &.center {
        left: 50%;
        transform: translateX(-50%);
    }

    &.top {
        clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
        top: -12px;
    }

    &.bottom {
        clip-path: polygon(0% 0%, 100% 0%, 50% 100%);
        bottom: -12px;
    }

    &.left {
        left: 20px;
    }

    &.right {
        right: 20px;
    }

    &.transparent {
        z-index: 1;
        background-color: #fff;
        width: 20px;
        height: 10px;

        &.top {
            top: -10px;
        }

        &.bottom {
            bottom: -10px;
        }

        &.left {
            left: 21px;
        }

        &.right {
            right: 21px;
        }
    }
}

::-webkit-scrollbar {
    display: none;
}

/*icon*/
[class^="pui-icon"],
[class*=" pui-icon"]

/*这里有空格*/
    {
    font-family: "iconfont" !important;
    font-size: 12px;
    font-style: normal;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/*svg*/
.pui-svg {
    width: 1em;
    height: 1em;
    vertical-align: -0.15em;
    fill: currentColor;
    overflow: hidden;
    font-size: 12px;
}

/*button*/
.pui-btn {
    user-select: none;
    padding: 8px 16px;
    box-sizing: border-box;
    font-size: 12px;
    color: #fff;
    border-radius: 4px;
    border: none;
    border: 1px solid;
    outline: none;
    background-color: transparent;
    cursor: pointer;
    transition: .1s all linear;

    &+.pui-btn {
        margin-left: 10px;
    }

    &.default {
        background: #fff;
        border-color: #ddd;
        color: #000;

        &:hover {
            background: $primary-disabled_light;
            color: $primary-fill;
            border-color: $primary-fill;
        }
    }

    &.text {
        color: #000;
        padding: 0;
        border: none;

        &:hover {
            color: $primary-fill;
        }
    }

    &.primary {
        background: $primary-fill;
        border-color: $primary-fill;

        &:hover {
            background: $primary-hover;
            border-color: $primary-hover;
        }

        &.plain {
            background: $primary;
            color: $primary-fill;
            border-color: $primary-fill;

            &:hover {
                background: $primary-fill;
                color: #fff;
                border-color: $primary-fill;
            }
        }
    }

    &.success {
        background: $success;
        border-color: $success;

        &:hover {
            background: $success-80;
            border-color: $success-80;
        }

        &.plain {
            background: $success-20;
            color: $success;
            border-color: $success-40;

            &:hover {
                background: $success;
                color: #fff;
                border-color: $success;
            }
        }
    }

    /*&.info {
        background: $info;
        border-color: $info;
        &:hover {
            background: $info-80;
            border-color: $info-80;
        }
        &.plain {
            background: $info-20;
            color: $info;
            border-color: $info-40;
            &:hover {
                background: $info;
                color: #fff;
                border-color: $info;
            }
        }
    }*/
    &.warning {
        background: $warning;
        border-color: $warning;

        &:hover {
            background: $warning-80;
            border-color: $warning-80;
        }

        &.plain {
            background: $warning-20;
            color: $warning;
            border-color: $warning-40;

            &:hover {
                background: $warning;
                color: #fff;
                border-color: $warning;
            }
        }
    }

    &.danger {
        background: $danger;
        border-color: $danger;

        &:hover {
            background: $danger-80;
            border-color: $danger-80;
        }

        &.plain {
            background: $danger-20;
            color: $danger;
            border-color: $danger-40;

            &:hover {
                background: $danger;
                color: #fff;
                border-color: $danger;
            }
        }
    }

    &.small {
        padding: 4px;
        font-size: 12px;
    }

    &.large {
        padding: 8px 16px;
        font-size: 16px;
    }

    &.block {
        display: block;
        width: 100%;
    }

    &.round {
        border-radius: 20px;
    }

    &.circle {
        border-radius: 50%;
    }

    &.icon {
        padding: 9px 10px;

        &.large {
            padding: 8px 9px;
        }
    }

    &.disabled {
        opacity: .5;
        cursor: not-allowed;
    }
}

/*tag*/
.pui-tag {
    padding: 5px 10px;
    box-sizing: border-box;
    font-size: 12px;
    color: #fff;
    border-radius: 4px;
    border: none;
    border: 1px solid;
    outline: none;
    background-color: transparent;
    display: inline-block;

    &+.pui-tag {
        margin-left: 10px;
    }

    &.default {
        background: #fff;
        border-color: #ddd;
        color: #000;
    }

    &.text {
        color: #000;
        padding: 0;
        border: none;
    }

    &.primary {
        background: $primary-fill;
        border-color: $primary-fill;

        &.plain {
            background: $primary-disabled_light;
            color: $primary-fill;
            border-color: $primary-fill;
        }
    }

    /*&.success {
        background: $success;
        border-color: $success;
        &.plain {
            background: $success-20;
            color: $success;
            border-color: $success-40;
        }
    }
    &.info {
        background: $info;
        border-color: $info;
        &.plain {
            background: $info-20;
            color: $info;
            border-color: $info-40;
        }
    }
    &.warning {
        background: $warning;
        border-color: $warning;
        &.plain {
            background: $warning-20;
            color: $warning;
            border-color: $warning-40;
        }
    }
    &.danger {
        background: $danger;
        border-color: $danger;
        &.plain {
            background: $danger-20;
            color: $danger;
            border-color: $danger-40;
        }
    }*/
    &.large {
        padding: 8px 16px;
        font-size: 16px;
    }

    &.round {
        border-radius: 20px;
        ;
    }

    &.circle {
        border-radius: 50%;
        width: 20px;
        height: 20px;
        padding: 0;
        text-align: center;
    }
}

/*icon*/
.pui-icon {
    flex-shrink: 0;
    font-size: 12px;

    &.large {
        font-size: 16px;
    }
}

/*svg*/
.pui-svg {
    flex-shrink: 0;
    font-size: 24px;

    &.large {
        font-size: 36px;
    }

    &.normal {
        font-size: 24px;
    }

    &.small {
        font-size: 18px;
    }

    &.mini {
        font-size: 12px;
    }
}

/*switch*/
.pui-switch {
    display: inline-block;

    .pui-switch_content {
        cursor: pointer;
        display: flex;
        justify-content: center;
        align-items: center;
        position: relative;
        font-size: 14px;
        vertical-align: middle;

        &.disabled {
            cursor: not-allowed;

            &.is-checked {
                .pui-switch_core {
                    border-color: $primary-disabled_light;
                    background-color: $primary-disabled_light;
                }
            }

            .pui-switch_core {
                border-color: $border-light_light;
                background-color: $border-light_light;
            }
        }

        &.is-checked {
            .pui-switch_core {
                border-color: $primary-fill;
                background-color: $primary-fill;

                .pui-switch_button {
                    transform: translateX(26px);
                }

                &.small {
                    .pui-switch_button {
                        transform: translateX(18px);
                    }
                }

                &.large {
                    .pui-switch_button {
                        transform: translateX(30px);
                    }
                }
            }
        }

        .pui-switch_label {
            font-size: 16px;
        }

        .pui-switch_core {
            margin: 0;
            display: inline-block;
            position: relative;
            width: 50px;
            height: 24px;
            border: 1px solid transparent;
            outline: none;
            border-radius: 25px;
            box-sizing: border-box;
            background: $border-deep_light;
            transition: border-color .3s, background-color .3s;
            vertical-align: middle;

            .autofocus {
                width: 52px;
                height: 26px;
                border: 2px solid transparent;
                border-radius: 25px;
                position: absolute;
                top: 50%;
                left: 50%;
                transform: translate(-50%, -50%);
                transition: all .3s ease-in-out;
            }

            &:hover {
                .autofocus {
                    border-color: $primary-fill;
                }
            }

            &.large {
                width: 60px;
                height: 30px;

                .autofocus {
                    width: 62px;
                    height: 32px;
                }

                .pui-switch_button {
                    top: 1px;
                    left: 1px;
                    width: 26px;
                    height: 26px;
                }
            }

            .pui-switch_button {
                position: absolute;
                top: 1px;
                left: 1px;
                width: 20px;
                height: 20px;
                border-radius: 100%;
                transition: all .3s;
                background-color: #fff;
                display: flex;
                justify-content: center;
                align-items: center;

                .loading {
                    color: $primary-fill;
                }
            }
        }

        /*隐藏input标签*/
        .pui-switch_input {
            position: absolute;
            width: 0;
            height: 0;
            opacity: 0;
            margin: 0;
        }
    }
}

/*input*/
.pui-input {
    border-radius: 4px;
    border: 1px solid $border-light_light;
    box-sizing: border-box;
    width: 120px;
    height: 30px;
    padding: 0 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
    overflow: hidden;
    background: transparent;
    cursor: pointer;

    &.mini {
        height: 24px;

        .pui-input_frame {
            font-size: 12px;
        }
    }

    &.large {
        height: 40px;

        .pui-input_frame {
            font-size: 16px;
        }
    }

    &.full-fill {
        width: 100%;
    }

    &:hover {
        border-color: $primary-fill;
    }

    &.block {
        width: 100%;
    }

    &.is-show {
        border-color: $primary-fill;
    }

    &.disabled {
        opacity: .5;
        cursor: not-allowed;
    }

    .pui-input_frame {
        border: none;
        outline: none;
        flex: 1;
        min-width: 0;
        height: 100%;
        font-size: 12px;
        color: $text_light;
        background: transparent;
        cursor: pointer;

        &::placeholder {
            color: $text-place_light;
        }
    }
}

/*selector*/
.pui-selector {
    position: relative;
    display: inline-block;

    &.block {
        display: block;

        .pui-popper {
            >div {
                width: 100%;
            }
        }
    }

    div:has(.pui-selector_text) {
        font-size: 0px !important;
    }

    .pui-selector_text {
        border-radius: 4px;
        border: 1px solid $border-light_light;
        box-sizing: border-box;
        min-width: 120px;
        min-height: 30px;
        padding: 0 5px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        white-space: nowrap;
        cursor: pointer;

        &.large {
            min-height: 40px;

            .pui-selected {
                font-size: 16px;
            }
        }

        &:hover {
            border-color: $primary-fill;
        }

        &.is-show {
            border-color: $primary-fill;
        }

        &.disabled {
            opacity: .5;
            cursor: not-allowed;
        }

        .pui-selected {
            font-size: 12px;
            color: $text_light;
            flex: 1;
            overflow: auto;

            &::-webkit-scrollbar {
                display: none;
            }

            &.not-selected {
                color: $text-sub_light;
            }
        }
    }

    .pui-selector-content {
        position: relative;
        width: 100%;
        box-sizing: border-box;
        z-index: 2;
        padding: 5px 0;

        .pui-selector-content_list {
            .pui-selector-content_item {
                padding: 10px 20px;
                font-size: 12px;
                cursor: pointer;
                white-space: nowrap;

                &:hover {
                    background: $bg-selected_light;
                }

                &.active-item {
                    color: $primary-fill;
                }

                .content-label {
                    white-space: nowrap;
                }
            }

            .no-data {
                text-align: center;
                padding: 10px 20px;
                color: $text_light;
                font-size: 12px;
            }
        }
    }
}

/*search*/
.pui-search {
    position: relative;
    display: inline-block;
    box-sizing: border-box;

    .pui-search-content {
        position: relative;
        width: 100%;
        box-sizing: border-box;
        z-index: 2;
        padding: 5px 0;

        .pui-search-content_list {
            .pui-search-content_item {
                padding: 10px 20px;
                font-size: 12px;
                cursor: pointer;

                &:hover {
                    background: $bg-lighter_light;
                }

                &.active-item {
                    color: $primary-fill;
                }
            }

            .no-data {
                text-align: center;
                padding: 10px 20px;
                color: $text_light;
                font-size: 12px;
            }
        }
    }
}

/*checkbox*/
.pui-checkbox {
    display: inline-block;
    cursor: pointer;
    transition: border-color .3s ease-in-out;

    &+.pui-checkbox {
        margin-left: 10px;
    }

    &.block {
        display: block;

        &+.pui-checkbox {
            margin-left: 0px;
            margin-top: 10px;
        }
    }

    &.border {
        padding: 5px 10px;
        border: 1px solid $border-light_light;
        border-radius: 4px;

        &:hover {
            border-color: $primary-fill;
        }

        &.disabled-border {
            &:hover {
                border-color: $border-lighter_light;
            }
        }
    }

    .pui-checkbox_content {
        box-sizing: border-box;
        display: flex;
        justify-content: flex-start;
        align-items: center;
        height: 20px;

        &.disabled {
            cursor: not-allowed;

            .pui-checkbox_label {
                color: $text-disabled_light;
            }

            .pui-checkbox_frame {
                &.checked {
                    background: $text-disabled_light;
                }
            }
        }

        &:hover {
            .pui-checkbox_frame {
                border-color: $primary-hover;
            }
        }

        .pui-checkbox_frame {
            width: 14px;
            height: 14px;
            border: 1px solid $border-light_light;
            border-radius: 4px;
            margin-right: 10px;
            box-sizing: border-box;
            display: flex;
            justify-content: center;
            align-items: center;
            color: #fff;

            &.checked {
                background: $primary-fill;
                border: none;
            }

            .not-show {
                opacity: 0;
            }
        }

        .pui-checkbox_label {
            font-size: 12px;
            color: $text-font_light;
        }
    }
}

/*radio-group*/
.pui-radio-group {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;

    &.column {
        flex-direction: column;
        align-items: flex-start;

        .pui-radio {
            margin-left: 0;

            &+.pui-radio {
                margin-top: 10px;
            }
        }
    }
}

/*radio*/
.pui-radio {
    display: inline-block;
    cursor: pointer;

    &+.pui-radio {
        margin-left: 10px;
    }

    .pui-radio_content {
        box-sizing: border-box;
        display: flex;
        justify-content: flex-start;
        align-items: center;
        height: 20px;

        &:hover {
            border-color: $primary-hover;
        }

        &.active-item {
            .pui-radio_frame {
                border-color: $primary-hover;
            }
        }

        &.disabled {
            cursor: not-allowed;

            &:hover {
                .pui-radio_frame {
                    border-color: transparent;
                }
            }

            &.active-item {
                .pui-radio_frame {
                    border-color: transparent;
                }
            }

            .pui-radio_label {
                color: $text-disabled_light;
            }

            .pui-radio_frame {
                background: $text-disabled_light;

                .pui-radio_checked {
                    background: $text-sub_light;
                }
            }
        }

        .pui-radio_frame {
            transition: border-color .3s ease-in-out;
            height: 14px;
            width: 14px;
            border-radius: 50%;
            margin-right: 10px;
            box-sizing: border-box;
            position: relative;
            border: 1px solid $border-light_light;

            .pui-radio_checked {
                position: absolute;
                top: 50%;
                left: 50%;
                transform: translate(-50%, -50%);
                width: 7px;
                height: 7px;
                border-radius: 50%;
                background: $primary-hover;
            }
        }
    }

    .pui-radio_label {
        font-size: 12px;
        color: $text-font_light;
    }
}

/*tabs*/
.pui-tabs {
    position: relative;
    overflow: hidden;
    border-left: 1px solid $border-light_light;
    border-right: 1px solid $border-light_light;
    border-bottom: 1px solid $border-light_light;
    background: $bg-home_light;
    box-sizing: border-box;

    &.round {
        border: none;

        .pui-tabs_content {
            padding: 2px;

            .pui-tab {
                border-radius: 6px;

                &.active-tab {
                    border-left: 0px !important;
                    border-right: 0px !important;

                    .active-line {
                        background: transparent;
                    }
                }
            }
        }
    }

    &.flex {
        .pui-tabs_content {
            justify-content: space-between;

            .pui-tab {
                flex: 1;

                &:not(:first-child) {
                    margin-left: 5px;
                }

                &:last-child {
                    border: none;
                }
            }
        }
    }

    .pui-tabs_content {
        height: 32px;
        justify-content: flex-start;
        align-items: center;
        position: relative;
        box-sizing: border-box;
        z-index: 1;
        min-width: 0px;
        display: inline-flex;
        transition: all .3s ease-in-out;

        .pui-tabs_top-line {
            position: absolute;
            top: 0;
            left: 0;
            height: 1px;
            width: 100%;
            background-color: $bg-home_light;
        }

        &.flex {
            display: flex;
        }

        .pui-tab {
            height: 100%;
            font-size: 12px;
            padding: 0 20px;
            box-sizing: border-box;
            justify-content: center;
            align-items: center;
            display: flex;
            color: $text_light;
            position: relative;
            transition: background-color .3s ease-in-out;
            content: attr(title);
            cursor: pointer;

            &:hover {
                background: #fff;
            }

            .svg-img {
                max-height: 20px;
            }

            .pui-tab_name {
                color: $text_light;
                font-size: 12px !important;
                max-width: 120px;
                text-overflow: ellipsis;
                overflow: hidden;
                word-break: break-all;
                white-space: nowrap;
            }

            .icon {
                position: absolute;
                right: 5px;
                top: 50%;
                transform: translateY(-50%);

                &:hover {
                    color: $primary-hover;
                }
            }

            &.active-tab {
                background: #fff;
                color: $primary-fill;

                &:not(:nth-child(1)) {
                    border-left: 1px solid $border-light_light;
                }

                border-right: 1px solid $border-light_light;

                .pui-tab_name {
                    color: $primary-fill;
                }

                .active-line {
                    width: 100%;
                    height: 1px;
                    background: #fff;
                    position: absolute;
                    top: -1px;
                    left: 0;
                }
            }
        }

        .pui-tab_options {
            height: 30px;
            font-size: 12px;
            padding: 0;
            box-sizing: border-box;
            position: sticky;
            box-sizing: border-box;
            justify-content: center;
            align-items: center;
            display: flex;
            cursor: pointer;
            background: $bg-home_light;
            z-index: 1;

            &.pui-tab_options-left {
                left: 0px;
                box-shadow: 4px 0px 5px $border-deep_light;
            }

            &.pui-tab_options-right {
                right: -1px;
                box-shadow: -4px 0px 5px $border-deep_light;
            }

            .pui-tab_btn {
                height: 100%;
                width: 30px;
                flex-shrink: 0;
                justify-content: center;
                align-items: center;
                display: flex;
                transition: background-color .3s linear;

                &:hover {
                    background: #fff;
                }
            }
        }
    }
}

/*dialog*/
.pui-dialog {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;

    .pui-dialog_mask {
        background: rgba(0, 0, 0, .5);
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1000;
    }

    .pui-dialog_content {
        min-width: 364px;
        box-sizing: border-box;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        background: #fff;
        border-radius: 4px;
        z-index: 1001;
        border: 1px solid $border_light;

        .pui-dialog_header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            box-sizing: border-box;
            padding: 16px;

            .pui-dialog_title {
                font-size: 16px;
            }

            .pui-icon {
                cursor: pointer;

                &:hover {
                    color: $text-place_light;
                }
            }
        }

        .pui-dialog_container {
            padding: 0 16px;
            box-sizing: border-box;

            * {
                font-size: 12px;
            }
        }

        .pui-dialog_footer {
            display: flex;
            justify-content: flex-end;
            align-items: center;
            box-sizing: border-box;
            padding: 16px;
        }
    }
}

/*popper*/
.pui-popper {
    .popper {
        min-width: 0;
        max-height: 500px;
        overflow-y: auto;
        width: auto;
    }

    .dark {
        --popper-theme-background-color: #333333;
        --popper-theme-background-color-hover: #333333;
        --popper-theme-text-color: white;
        --popper-theme-border-width: 0px;
        --popper-theme-border-radius: 6px;
        --popper-theme-padding: 32px;
        --popper-theme-box-shadow: 0 6px 30px -6px rgba(0, 0, 0, 0.25);
    }

    .light {
        --popper-theme-background-color: #ffffff;
        --popper-theme-background-color-hover: #ffffff;
        --popper-theme-text-color: #333333;
        --popper-theme-border-width: 1px;
        --popper-theme-border-style: solid;
        --popper-theme-border-color: #ddd;
        --popper-theme-border-radius: 4px;
        --popper-theme-box-shadow: 0 6px 30px -6px rgba(0, 0, 0, 0.25);
    }
}

/*tree*/
.pui-tree {
    .pui-tree_popper {
        position: relative;
        display: inline-block;
    }

    .pui-tree_box {
        border-radius: 4px;

        &.border {
            border: 1px solid $border_light;
        }
    }
}

.pui-tree-children {
    .pui-tree-children_content {
        position: relative;
        width: 100%;
        box-sizing: border-box;
        z-index: 2;

        .pui-tree-children_content-list {
            .pui-tree-children_content-item {
                width: auto;
                max-height: 36px;
                overflow-y: hidden;
                transition: height .3s ease-in-out;
                position: relative;
                white-space: nowrap;

                &.active-tree-item {
                    background-color: $primary-fill;
                }

                &:hover {
                    background-color: $primary-fill;
                }

                &.show {
                    max-height: 10000px;
                }

                .item {
                    cursor: pointer;
                    padding: 10px 20px 10px 30px;
                    display: flex;
                    justify-content: flex-start;
                    align-items: center;
                    position: relative;
                    width: 100%;
                    box-sizing: border-box;

                    .arrow {
                        position: absolute;
                        top: 50%;
                        left: 10px;
                        transform: translateY(-50%);
                        color: #000;
                        z-index: 1;
                    }

                    .name {
                        font-size: 14px;
                    }

                    .tip {
                        font-size: 12px;
                        color: $text_light;
                        margin-left: 5px;
                        flex: 1;
                        text-align: right;
                        text-overflow: ellipsis;
                        overflow: hidden;
                        word-break: break-all;
                        white-space: nowrap;
                    }
                }

                &.active-item {}
            }

            .no-data {
                text-align: center;
                padding: 10px 20px;
                color: $text_light;
                font-size: 12px;
            }
        }
    }
}

/*cascader*/
.pui-cascader {
    position: relative;
    display: inline-block;

    .pui-cascader_popper {
        .pui-cascader_content {
            display: flex;
            justify-content: flex-start;
            align-items: flex-start;

            .pui-cascader_list {
                flex: 1;
                width: 150px;
                flex-shrink: 0;
                height: 100%;

                &:nth-child(2) {
                    border-left: 1px solid $border_light;

                    &.is-third {
                        border-right: 1px solid $border_light;
                    }
                }

                .pui-cascader_item {
                    height: 36px;
                    box-sizing: border-box;
                    display: flex;
                    justify-content: space-between;
                    align-items: center;
                    padding: 0 10px;
                    white-space: nowrap;
                    cursor: pointer;

                    &.active-item {
                        color: $primary-fill;
                    }

                    .label {
                        display: flex;
                        justify-content: flex-start;
                        align-items: center;

                        .pui-icon {
                            border-radius: 2px;
                            background: $primary-fill;
                            color: #fff;
                            width: 14px;
                            height: 14px;
                            margin-right: 10px;

                            &.null {
                                background: transparent;
                                box-sizing: border-box;
                                border: 1px solid $border_light;
                            }
                        }

                        font-size: 12px;
                    }

                    &:hover {
                        color: $primary-fill;
                    }
                }
            }
        }
    }
}

/*drawer*/
.pui-drawer {
    overflow: hidden;
    position: relative;
    border-radius: 4px;
    border: 1px solid $border_light;
    box-sizing: border-box;
    background: #fff;
    z-index: 1;
    transition: all .3s ease-in-out;

    &__left {
        top: 0;
        left: 0;
        height: 100%;
        width: 30px;

        &.show {
            width: 300px;
        }
    }

    &__right {
        top: 0;
        right: 0;
        height: 100%;
        width: 30px;

        &.show {
            width: 300px;
        }

        .pui-drawer_toolbar {
            flex-direction: row !important;
            padding: 0 10px 0 2px !important;
        }
    }

    &__top {
        top: 0;
        left: 0;
        width: 100%;
        height: 30px;

        &.show {
            height: 300px;
        }
    }

    &__bottom {
        bottom: 0;
        left: 0;
        width: 100%;
        height: 30px;

        &.show {
            height: 300px;
        }
    }

    .pui-drawer_container {
        position: relative;
        box-sizing: border-box;
        width: 100%;
        height: 100%;

        .pui-drawer_toolbar {
            height: 30px;
            position: relative;
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-direction: row-reverse;
            padding: 0 2px 0 10px;
            box-sizing: border-box;
            flex-shrink: 0;
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            border-bottom: 1px solid $border_light;
            z-index: 1;

            &__title {
                font-size: 16px;
            }

            .pui-icon {
                transition: color .3s ease-in-out;
                cursor: pointer;
                font-size: 24px;
                color: $text-sub_light;

                &:hover {
                    color: $text-font_light;
                }
            }
        }

        .pui-drawer_content {
            padding: 10px;
            box-sizing: border-box;
            flex: 1;
            position: absolute;
            top: 30px;
            left: 0;
            right: 0;
            bottom: 0;
            overflow-y: auto;
            box-sizing: border-box;

            .inner {
                height: 100%;
                width: 100%;
                position: relative;
                box-sizing: border-box;
                font-size: 16px;
            }
        }
    }
}

/*slider*/
.pui-slider {
    .pui-slider_container {
        position: relative;

        .pui-slider_content {
            background-color: #fff;
            position: relative;
            transition: 1s all;
            user-select: none;
            color: #333;
            @include jc-flex;
            height: 4px;
            /*no*/
            box-sizing: border-box;
            border: 1px solid $border_light;
            border-radius: 100px;

            .pui-slider_range {
                width: 0px;
                height: 4px;
                position: absolute;
                left: 0;
                top: -1px;
                border-radius: 100px;
                background: $primary-fill;

                .pui-slider_move {
                    position: absolute;
                    top: 50%;
                    right: -7.5px;
                    height: 15px;
                    width: 15px;
                    border-radius: 50%;
                    margin-top: -7.5px;
                    border: 2px solid $border_light;
                    box-sizing: border-box;
                    background: #fff;
                    cursor: pointer;

                    &:hover {
                        border-color: $primary-fill;
                    }
                }
            }
        }
    }
}

/*toolbar*/
.pui-toolbar {
    .pui-toolbar_container {
        height: 120px;
        display: flex;
        justify-content: flex-start;
        align-items: center;

        .pui-toolbar_block {
            height: 100%;
            border-right: 1px solid $border_light;

            &:first-child {
                border-left: 1px solid $border_light;
            }

            .pui-toolbar_block-content {
                padding: 10px 20px;
                height: 100%;
                box-sizing: border-box;
                display: flex;
                justify-content: space-between;
                align-items: flex-start;
                position: relative;

                .pui-toolbar_list {
                    display: flex;
                    justify-content: space-between;
                    align-items: center;

                    &.wrap {
                        flex-wrap: wrap;
                    }

                    &.column {
                        flex-direction: column;

                        &:first-child {
                            .pui-toolbar_item {
                                margin-left: 0 !important;
                            }
                        }

                        .pui-toolbar_item {
                            &:first-child {
                                margin-left: 10px;
                            }

                            &:not(:first-child) {
                                margin-top: 10px;
                            }
                        }
                    }

                    .pui-toolbar_item {
                        flex-shrink: 0;
                        display: flex;
                        justify-content: center;
                        align-items: center;
                        cursor: pointer;
                        border-radius: 3px;

                        &:not(:first-child) {
                            margin-left: 10px;
                        }

                        &.column {
                            flex-direction: column;
                        }

                        &.active-item {
                            background: $border_light;

                            .item {
                                .pui-toolbar_item_label {

                                    .pui-icon,
                                    .label {
                                        color: $primary-hover;
                                    }

                                    .pui-svg {
                                        fill: $primary-hover;
                                    }
                                }
                            }
                        }

                        &.hover {
                            &:hover {
                                background: $border_light;

                                .item {
                                    .pui-toolbar_item_label {

                                        .pui-icon,
                                        .label {
                                            color: $primary-hover;
                                        }

                                        .pui-svg {
                                            fill: $primary-hover;
                                        }
                                    }
                                }
                            }
                        }

                        &.no-hover {
                            &:hover {
                                background: transparent !important;

                                .item {
                                    .pui-toolbar_item_label {

                                        .pui-icon,
                                        .label {
                                            color: $primary-hover !important;
                                        }

                                        .pui-svg {
                                            fill: $primary-hover;
                                        }
                                    }
                                }
                            }
                        }

                        &:has(.btn-list) {
                            justify-content: center;
                            align-self: stretch;
                            align-items: flex-end;
                        }

                        .item {
                            display: flex;
                            justify-content: flex-start;
                            align-items: center;

                            &.column {
                                flex-direction: column;
                            }

                            .pui-toolbar_item_label {
                                border-radius: 2px;
                                padding: 0px 3px;
                                display: flex;
                                justify-content: flex-start;
                                align-items: center;

                                &.pui-toolbar_item_input {
                                    .label {
                                        width: 100px;
                                        text-align: left;
                                    }

                                    .pui-input {
                                        width: 80px;
                                        outline: none;
                                        font-size: 12px;

                                        &[type=number] {

                                            &::-webkit-outer-spin-button,
                                            &::-webkit-inner-spin-button {
                                                -webkit-appearance: none;
                                            }

                                            -moz-appearance: textfield;
                                        }
                                    }

                                    .btn-list {
                                        display: flex;
                                        justify-content: flex-start;
                                        align-items: center;

                                        .pui-btn {
                                            height: 30px;
                                            width: 60px;
                                            padding: 0;
                                        }

                                        .pui-switch {
                                            flex-shrink: 0;

                                            .pui-switch_label {
                                                font-size: 14px;
                                            }
                                        }
                                    }
                                }

                                &.column {
                                    flex-direction: column;
                                }

                                .label {
                                    text-align: center;
                                    display: block;
                                    margin: auto;
                                    justify-content: flex-start;
                                    align-items: center;
                                    font-size: 12px;
                                    color: $text_light;
                                    white-space: nowrap;
                                }
                            }

                            .pui-icon {
                                text-align: center;
                                font-size: 20px;
                                display: flex;
                                flex-direction: column;

                                &.large {
                                    font-size: 32px;
                                }
                            }

                            .pui-svg {
                                text-align: center;
                                font-size: 20px;
                                display: flex;
                                flex-direction: column;

                                &.large {
                                    font-size: 32px;
                                }
                            }

                            .pui-selector-content {
                                position: relative;
                                width: 100%;
                                box-sizing: border-box;
                                z-index: 2;
                                padding: 5px 0;

                                .pui-selector-content_list {
                                    .pui-selector-content_item {
                                        display: flex;
                                        padding: 5px 17px;
                                        font-size: 12px;
                                        justify-content: center;
                                        white-space: nowrap;

                                        &.border {
                                            border-bottom: 1px solid $border-lighter_light;
                                        }

                                        &:hover {
                                            background: $primary-fill;
                                        }

                                        &.active-item {
                                            color: $primary-fill;
                                        }

                                        .content-icon {
                                            display: flex;
                                        }

                                        .content-label {
                                            font-size: 12px;
                                            align-self: center;
                                            white-space: nowrap;
                                        }
                                    }
                                }
                            }
                        }
                    }
                }

                .pui-toolbar_block-title {
                    font-size: 12px;
                    position: absolute;
                    bottom: 0;
                    left: 50%;
                    transform: translateX(-50%);
                    color: $text_light;
                    white-space: nowrap;
                }

                .text-mode {
                    display: flex;
                    justify-content: space-between;
                    align-items: flex-start;

                    .item {
                        display: flex;
                        justify-content: flex-start;
                        align-items: center;
                        cursor: pointer;

                        &:hover {
                            background: $border_light;

                            .pui-icon,
                            .label {
                                color: $primary-hover;
                            }

                            .pui-svg {
                                fill: $primary-hover;
                            }
                        }

                        .label {
                            font-size: 12px;
                            color: $text_light;
                        }

                        .pui-icon {
                            font-size: 20px;

                            &.large {
                                font-size: 32px;
                            }
                        }

                        .pui-svg {
                            font-size: 20px;

                            &.large {
                                font-size: 32px;
                            }
                        }
                    }

                    ._left {
                        flex-shrink: 0;

                        .item {
                            flex-direction: column;

                            .label {
                                font-size: 12px;
                            }
                        }
                    }

                    ._right {
                        flex: 1;
                        margin-left: 10px;

                        ._top {
                            display: flex;
                            justify-content: flex-start;
                            align-items: center;

                            .font-family {
                                .pui-selector_text {
                                    min-width: 0px !important;
                                    width: 100px;
                                }
                            }

                            .font-size {
                                margin-left: 10px;

                                .pui-selector_text {
                                    min-width: 0px !important;
                                    width: 46px !important;
                                }
                            }
                        }

                        ._bottom {
                            display: flex;
                            justify-content: flex-start;
                            align-items: center;
                            margin-top: 10px;

                            .item {
                                &:not(:first-child) {
                                    margin-left: 10px;
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}

/*dark*/
.pui-theme {
    transition: all .3s ease-in-out;

    &__dark {
        .text_dark {
            color: $text_dark;
        }

        background-color: $bg-home_dark;

        .pui-btn {
            &.default {
                background: $bg-home_dark;
                color: $text_dark;
            }
        }

        .pui-switch {
            .pui-switch_label {
                color: $text_dark;
            }

            .pui-switch_content {
                .pui-switch_core {
                    border-color: $border_dark;
                    background-color: $border_dark;
                }

                &.disabled {
                    .pui-switch_core {
                        border-color: $bg-lighter_dark;
                        background-color: $border-lighter_dark;
                    }

                    &.is-checked {
                        .pui-switch_core {
                            border-color: $primary-disabled_light;
                            background-color: $primary-disabled_light;
                        }
                    }
                }

                &.is-checked {
                    .pui-switch_core {
                        border-color: $primary-fill;
                        background-color: $primary-fill;

                        .pui-switch_button {
                            transform: translateX(26px);
                        }

                        &.small {
                            .pui-switch_button {
                                transform: translateX(18px);
                            }
                        }

                        &.large {
                            .pui-switch_button {
                                transform: translateX(30px);
                            }
                        }
                    }
                }
            }
        }

        .pui-icon {
            color: $text_dark;
        }

        .pui-svg {
            fill: $text_dark;
        }

        .pui-input {
            background: $bg-home_dark;

            .pui-input_frame {
                background: $bg-home_dark;
                color: $text_dark;

                &::placeholder {
                    color: $text-place_dark;
                }
            }
        }

        .pui-cascader {
            .pui-cascader_popper {
                .pui-cascader_content {
                    background: $bg-home_dark;

                    .pui-cascader_item {
                        color: $text_dark;
                    }
                }
            }
        }

        .pui-tree {
            .pui-tree-children {
                .pui-tree-children_content {
                    background: $bg-home_dark;

                    .item {
                        color: $text_dark;

                        .pui-icon {
                            color: $text_dark;
                        }

                        .pui-svg {
                            fill: $text_dark;
                        }
                    }
                }
            }
        }

        .pui-toolbar {
            .pui-toolbar_item {
                &.active-item {
                    background: $bg-selected_dark !important;

                    .item {
                        .pui-toolbar_item_label {
                            background: $bg-selected_dark !important;

                            .pui-icon,
                            .label {
                                color: $primary-hover !important;
                            }

                            .pui-svg {
                                fill: $primary-hover !important;
                            }
                        }
                    }
                }

                &.hover {
                    &:hover {
                        background: $bg-selected_dark !important;

                        .item {
                            .pui-toolbar_item_label {

                                .pui-icon,
                                .label {
                                    color: $primary-hover !important;
                                }

                                .pui-svg {
                                    fill: $primary-hover !important;
                                }
                            }
                        }
                    }
                }

                &.no-hover {
                    &:hover {
                        background: transparent !important;

                        .item {
                            .pui-toolbar_item_label {

                                .pui-icon,
                                .label {
                                    color: $primary-hover !important;
                                }

                                .pui-svg {
                                    fill: $primary-hover !important;
                                }
                            }
                        }
                    }
                }

                .item {
                    .label {
                        color: $text_dark !important;
                    }

                    .pui-toolbar_item_label {
                        &.pui-toolbar_item_input {
                            .pui-input {
                                color: $text_dark !important;
                            }
                        }
                    }

                    .pui-selector-content {
                        .pui-selector-content_list {
                            .pui-selector-content_item {

                                .pui-icon,
                                .content-label {
                                    color: $text_dark;
                                }

                                .pui-svg {
                                    fill: $text_dark;
                                }

                                &:hover {

                                    .pui-icon,
                                    .content-label {
                                        color: $primary-hover !important;
                                    }

                                    .pui-svg {
                                        fill: $primary-hover !important;
                                    }

                                    background: $border-light_dark !important;
                                }

                                &.active-item {
                                    background: $border-light_dark !important;
                                    color: $primary-hover !important;
                                }
                            }
                        }
                    }
                }
            }

            .text-mode {
                .item {
                    &:hover {
                        background: $bg-selected_dark !important;

                        .pui-icon,
                        .label {
                            color: $primary-hover !important;
                        }

                        .pui-svg {
                            fill: $primary-hover !important;
                        }
                    }

                    .label {
                        color: $text_dark !important;
                    }
                }
            }

            .pui-toolbar_block-title {
                color: $text_dark !important;
            }
        }

        .pui-tabs {
            background: $bg-tool_dark;
            border-left-color: $border-light_dark;
            border-right-color: $border-light_dark;
            border-bottom-color: $border-light_dark;

            &.flex {
                .pui-tabs_content {
                    justify-content: space-between;

                    .pui-tab {
                        &.active-tab {
                            background: #fff !important;
                        }

                        &:hover {
                            background: #fff !important;
                        }
                    }

                    .pui-tabs_top-line {
                        background: transparent;
                    }
                }
            }

            .pui-tab_options {
                background: $bg-home_dark !important;

                .pui-tab_btn {
                    &:hover {
                        background: $bg-lighter_dark !important;
                    }
                }

                &.pui-tab_options-left {
                    left: 0px;
                    box-shadow: 4px 0px 5px $border-deep_dark;
                }

                &.pui-tab_options-right {
                    right: -1px;
                    box-shadow: -4px 0px 5px $border-deep_dark;
                }
            }

            .pui-tab {
                .pui-tab_name {
                    color: $text_dark;
                }

                &.active-tab {
                    background: $bg-home_dark !important;

                    &:not(:nth-child(1)) {
                        border-left-color: $border-light_dark;
                    }

                    border-right-color: $border-light_dark;
                }

                &:hover {
                    .pui-tab_name {
                        color: $primary-fill;
                    }

                    background: $bg-home_dark !important;
                }
            }

            .pui-tabs_top-line {
                background: $border-light_dark;
            }
        }

        .pui-popper {
            .popper {
                background: $bg-home_dark !important;

                #arrow {
                    opacity: 0;
                }
            }
        }

        .pui-selector {
            .pui-selected {
                color: $text_dark !important;
            }

            .pui-selector-content_item {
                color: $text_dark !important;

                &:hover {
                    background: $border-light_dark !important;
                    color: $primary-fill !important;
                }
            }
        }

        .pui-search {
            .pui-input {
                input {
                    color: $text_dark;
                }
            }

            .pui-search-content_item {
                color: $text_dark;

                &:hover {
                    color: $primary-fill !important;
                    background: $border-light_dark !important;
                }

                &.active-item {
                    color: $primary-fill !important;
                }
            }
        }

        .pui-radio {
            .pui-radio_label {
                color: $text_dark;
            }

            .disabled {
                .pui-radio_label {
                    color: $text-disabled_dark;
                }

                .pui-radio_frame {
                    border-color: $border-light_dark !important;
                    background: $bg-home_dark !important;

                    .pui-radio_checked {
                        background: $bg-selected_dark !important;
                    }
                }
            }
        }

        .pui-checkbox {
            &.border {
                border-color: $border-light_dark;

                &:hover {
                    border-color: $border-lighter_dark;
                }

                &.disabled-border {
                    &:hover {
                        border-color: $border-deep_dark;
                    }
                }
            }

            .pui-checkbox_label {
                color: $text_dark;
            }

            .disabled {
                .pui-checkbox_label {
                    color: $text-disabled_dark;
                }

                .pui-checkbox_frame {
                    border: 1px solid $border-light_dark !important;
                    background: transparent !important;

                    .pui-icon {
                        color: $text-disabled_dark;
                    }

                    .pui-svg {
                        fill: $text-disabled_dark;
                    }

                    .pui-checkbox_checked {
                        background: $bg-selected_dark !important;
                    }
                }
            }
        }

        .pui-tag {
            &.default {
                background: $bg-home_dark;
                border-color: $border-light_dark;
                color: $text_dark;

                .pui-icon {
                    color: $text_dark;
                }

                .pui-svg {
                    fill: $text_dark;
                }
            }

            &.plain {
                background: $bg-home_dark;
                color: $primary;
                border-color: $primary;

                .pui-icon {
                    color: $primary;
                }

                .pui-svg {
                    fill: $primary;
                }
            }
        }

        .pui-dialog {
            .pui-dialog_header {
                color: $text_dark;
            }

            .pui-dialog_content {
                background: $bg-home_dark !important;
                border: 1px solid $border-light_dark;
                color: $text_dark;
            }
        }

        .pui-drawer {
            background: $bg-home_dark !important;

            .pui-drawer_container {
                border-color: $border-light_dark;

                .pui-drawer_toolbar {
                    &__title {
                        color: $text_dark;
                    }

                    .pui-icon {
                        color: $text_dark;

                        &:hover {
                            color: $text-sub_dark;
                        }
                    }

                    .pui-svg {
                        fill: $text_dark;

                        &:hover {
                            fill: $text-sub_dark;
                        }
                    }
                }

                .pui-drawer_content {
                    color: $text_dark;
                }
            }
        }

        .pui-tree {
            .pui-tree-children {
                .pui-tree-children_content {
                    .pui-tree-children_content-list {
                        .pui-tree-children_content-item {
                            &.active-tree-item {
                                .item {
                                    color: $primary-fill;
                                    background-color: $bg-selected_dark !important;

                                    .pui-icon {
                                        color: $primary-fill;
                                    }

                                    .pui-svg {
                                        fill: $primary-fill;
                                    }
                                }
                            }

                            &:hover {
                                .item {
                                    color: $primary-fill;
                                    background-color: $bg-selected_dark !important;

                                    .pui-icon {
                                        color: $primary-fill;
                                    }

                                    .pui-svg {
                                        fill: $primary-fill;
                                    }
                                }
                            }

                            &.active-item {
                                .item {
                                    color: $primary-fill;
                                    background-color: $bg-selected_dark !important;

                                    .pui-icon {
                                        color: $primary-fill;
                                    }

                                    .pui-svg {
                                        fill: $primary-fill;
                                    }
                                }
                            }
                        }

                        .no-data {
                            text-align: center;
                            padding: 10px 20px;
                            color: $text_light;
                            font-size: 12px;
                        }
                    }
                }
            }
        }
    }
}

.pui-header {
    background-color: #F2F3F5;
    box-sizing: border-box;
    flex-shrink: 0;
    border-style: solid;
    border-color: #D4D7DE;
    border-width: 0.5px;
}

.pui-footer {
    box-sizing: border-box;
    flex-shrink: 0;
    border-style: solid;
    border-color: #D4D7DE;
    border-width: 0.5px;
}

.pui-aside {
    overflow: auto;
    box-sizing: border-box;
    flex-shrink: 0;
    border-style: none solid none solid;
    border-color: #D4D7DE;
    border-width: 0.5px;
}

.pui-container {
    display: flex;
    flex: 1;
    flex-basis: auto;
    box-sizing: border-box;
    min-width: 0;

    &.row {
        flex-direction: row;
    }

    &.column {
        flex-direction: column;
    }
}

.pui-main {
    display: block;
    flex: 1;
    flex-basis: auto;
    overflow: auto;
    box-sizing: border-box;
    border-style: solid;
    border-color: #D4D7DE;
    border-width: 0.5px;
}

.dropdown {
    position: relative;
    display: inline-block;

    &.is-active {
        .dropdown-menu {
            opacity: 1;
        }
    }

    .dropdown-trigger {
        cursor: pointer;
    }

    .dropdown-menu {
        position: absolute;
        background-color: #fff;
        border: 1px solid #c8c8c8;
        border-radius: 0px;
        box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.15);
        min-width: 80px;
        z-index: 10;
        opacity: 0;
        transition: opacity 0.2s ease;

        &.is-hidden {
            display: none;
        }

        &.dropdown-menu--top-start {
            top: -10px;
            left: 0;
        }

        &.dropdown-menu--top-end {
            top: -10px;
            right: 0;
        }

        &.dropdown-menu--bottom-start {
            top: 100%;
            left: 0;
        }

        &.dropdown-menu--bottom-end {
            top: 100%;
            right: 0;
        }
    }
}

.pui-table {
    width: 30%;

    table {
        border-collapse: collapse;
        width: 50%;
    }

    th,
    td {
        border: 1px solid #D4D7DE;
        padding: 8px;
        text-align: left;
    }

    th {
        background-color: #eee;
    }

    .stripe {
        td {
            background-color: #f9f9f9;
        }
    }
}

.color-button {
    width: 15px;
    height: 15px;
    margin: 6px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.pui-color-picker {
    position: relative;
    user-select: none;
    width: 130px;
    background: #fff;
    padding: 10px;

    /* 饱和度和亮度 */
    .saturation-value {
        cursor: pointer;
        width: 100%;
        height: 120px;
        position: relative;
        margin-bottom: 10px;
        box-shadow: 1px 1px 1px rgba(0, 0, 0, 0.1);

        &>div {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
        }

        /* 圆圈 */
        .point {
            box-sizing: border-box;
            width: 5px;
            height: 5px;
            background-color: transparent;
            border: 2px solid #ccc;
            border-radius: 50%;
            transform: translate(-50%, -50%);
            position: absolute;
            z-index: 9;
        }

        .saturation-value-2 {
            background: linear-gradient(to right, white, #ffffff00)
        }

        .saturation-value-3 {
            background: linear-gradient(to top, black, #ffffff00)
        }
    }

    /* 色调 透明度 */
    .color-select-middle {
        width: 100%;
        display: flex;
        margin-bottom: 5px;

        /* 色调滑块条 */
        .hue-slider {
            position: relative;
            margin-bottom: 6px;
            height: 10px;
            background: linear-gradient(90deg, red 0, #ff0 17%, #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, red);
            box-shadow: 1px 1px 1px rgba(0, 0, 0, 0.1);
        }

        /* 透明度滑块条 */
        .alpha-slider {
            position: relative;
            height: 10px;
            box-shadow: 1px 1px 1px rgba(0, 0, 0, 0.1);
            background: #fff url("");
            background-size: 10px 10px;
        }

        /* 滑块 */
        .slider {
            position: absolute;
            box-shadow: 0 0 2px rgba(0, 0, 0, .6);
            box-sizing: border-box;
            width: 4px;
            height: 100%;
            background-color: #fff;
        }

        /* 颜色方块 */
        .color-diamond {
            position: relative;
            margin-left: 5px;
            margin-top: 3px;
            width: 18px;
            height: 18px;
            border-radius: 3px;
            overflow: hidden;
            background-image: url("");
            background-size: 10px 10px;
        }
    }

    /* 颜色的值 hex rgba */
    .color-value {
        width: 100%;
        display: flex;
        justify-content: space-between;

        div {
            padding: 0 1px;
            text-align: center;
        }

        input {
            font-size: 10px;
            box-sizing: border-box;
            width: 19px;
            height: 20px;
            padding: 0;
            margin: 0;
            outline: none;
            text-align: center;
            border-radius: 3px;
            border: 1px solid #ccc;
        }

        p {
            font-size: 10px;
            margin: 1px 0 0;
        }

        .rgba-a {
            padding-right: 0;
        }

        .hex {
            flex: 1;
            padding-left: 0;

            input {
                width: 43px;
                height: 20px;
            }
        }
    }

    /* 预设颜色  */
    .preset {
        width: 100%;
        padding: 0;
        margin: 6px 0 0;
        list-style: none;
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-start;

        li {
            width: 12px;
            height: 12px;
            margin-right: 1.75px;
            margin-bottom: 3px;
            border: 1px solid #ccc;
            border-radius: 3px;
        }
    }
}

.pui-window {
    position: relative;
    float: left;
    border-style: solid;
    border-color: #EBEEF5;
    border-width: 1.5px;

    .left-top-box {
        position: absolute;
        top: 0;
        left: 0;
        cursor: nw-resize;
        width: 10px;
        height: 10px;
    }

    .left-bottom-box {
        position: absolute;
        bottom: 0;
        left: 0;
        cursor: sw-resize;
        width: 10px;
        height: 10px;
    }

    .right-top-box {
        position: absolute;
        top: 0;
        right: 0;
        cursor: ne-resize;
        width: 10px;
        height: 10px;
    }

    .right-bottom-box {
        position: absolute;
        bottom: 0;
        right: 0;
        cursor: se-resize;
        width: 10px;
        height: 10px;
    }

    .top-up-box {
        position: absolute;
        top: 0;
        left: 10px;
        cursor: n-resize;
        width: calc(100% - 20px);
        height: 10px;
    }

    .top-bottom-box {
        position: absolute;
        bottom: 0;
        left: 10px;
        cursor: s-resize;
        width: calc(100% - 20px);
        height: 10px;
    }

    .left-box {
        position: absolute;
        top: 10px;
        left: 0px;
        cursor: w-resize;
        width: 10px;
        height: calc(100% - 20px);
    }

    .right-box {
        position: absolute;
        top: 10px;
        right: 0px;
        cursor: e-resize;
        width: 10px;
        height: calc(100% - 20px);
    }

    #windowTop {
        height: 20px;
        display: flex;
        flex-direction: row;
        background-color: #EBEEF5;

        #title {
            height: 20px;
            width: 97%;
            font-size: small;
            text-align: center;
        }
    }

    .menu {
        position: absolute;
        background-color: #fff;
        width: 60px;
        /*height: 106px;*/
        font-size: 12px;
        color: #444040;
        border-radius: 4px;
        -webkit-box-sizing: border-box;
        box-sizing: border-box;
        border-radius: 3px;
        border: 1px solid rgba(0, 0, 0, 0.15);
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
        white-space: nowrap;
        z-index: 1000;

        .contextmenu_item {
            display: block;
            line-height: 20px;
            text-align: center;
            font-size: 12px;
            color: #444040;

            &:not(:last-child) {
                border-bottom: 1px solid rgba(0, 0, 0, 0.1);
            }

            &:hover {
                cursor: pointer;
                background: #66b1ff;
                border-color: #66b1ff;
                color: #fff;
            }
        }
    }
}

.pui-input-number {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    position: relative;

    .pui-input {
        position: relative;
    }

    .pui-button {
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        position: absolute;
        right: 1px;
        top: 0;

        .pui-icon,
        .pui-svg {
            font-size: 12px !important;
        }

        .arrow-up {
            padding: 0;
        }

        .arrow-down {
            padding: 0;
            margin-left: 0px;
        }

    }
}